package com.yz.xyt.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

public class ClazzImportVo {


    @ExcelProperty("班级名称")
    private String name;

    @ExcelProperty("年级")
    private String grade;

    @ExcelProperty("专业名称")
    private String majorName;

    @ExcelProperty("辅导员")
    private String staffName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    @Override
    public String toString() {
        return "ClazzImportVo{" +
                "name='" + name + '\'' +
                ", grade='" + grade + '\'' +
                ", majorName='" + majorName + '\'' +
                ", staffName='" + staffName + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }

    @Override
    public boolean equals(Object obj) {
       if (obj==null)
           return false;
       if(this == obj)
           return true;

       ClazzImportVo clazz = (ClazzImportVo) obj;
       if(this.name == clazz.name)
           return true;
       else
           return false;
    }
}